Skip to main content

Support Matrix

GPBT supports a fixed set of platforms, compilers, and linkers. The correct flags are picked up automatically from what CMake detects at configure time — nothing to configure manually.

Quick reference

AreaSupported
PlatformsWindows, Linux, macOS, iOS, Android, FreeBSD
CompilersMSVC, Clang / AppleClang, GCC
LinkersMSVC Link, LLD, LD64 (Apple), LD (GNU)

How detection works

GPBT runs detection on the first CMake configure and loads the policy file that matches the active compiler and platform. Each policy file only needs to cover the differences from the default baseline, so adding a new toolchain means writing a fairly small file.

The active tokens are available as CMake variables:

VariableExample values
GPBT_CURRENT_PLATFORMWindows, Linux, macOS, iOS, Android, FreeBSD
GPBT_CURRENT_COMPILERMSVC, Clang, GCC

Both variables are set during the configure step and are readable from any CMakeLists.txt that includes gp-build-tool.